/*
CREATE TABLE "base_de_chapter" (
  "sequence_nbr" text(255) NOT NULL,
  "library_code" text(255),
  "library_name" text(255),
  "classify_level4" text(255),
  "classify_level3" text(255),
  "classify_level2" text(255),
  "classify_level1" text(255),
  "sort_no" integer(11),
  "classlevel_split_concat" text(255),
  PRIMARY KEY ("sequence_nbr")
);
*/

use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseDeChapter {
    pub sequence_nbr: String,
    pub library_code: Option<String>,
    pub library_name: Option<String>,
    pub classify_level4: Option<String>,
    pub classify_level3: Option<String>,
    pub classify_level2: Option<String>,
    pub classify_level1: Option<String>,
    pub sort_no: Option<i32>,
    pub classlevel_split_concat: Option<String>,
}
crud!(BaseDeChapter {}, "base_de_chapter");
